export ndk_path='/root/Android/Sdk/ndk/21.1.6352462/toolchains'
export ndk_clang="${ndk_path}/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android26-clang"
export ndk_clangxx="${ndk_path}/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android26-clang++"
export ndk_host=arm-linux-androideabi

# sudo apt install binutils-multiarch
# sudo ln -s /usr/bin/readelf /usr/bin/arm-linux-androideabi-readelf

./configure \
	CC=${ndk_clang} \
       	CXX=${ndk_clangxx} \
       	--host=${ndk_host} \
	--build=x86_64-pc-linux-gnu \
       	--target=${ndk_host} \
	--disable-ipv6 \
	ac_cv_file__dev_ptmx=noac_cv_file__dev_ptmx=no \
	ac_cv_have_long_long_format=yes \
	ac_cv_file__dev_ptc=noac_cv_file__dev_ptc=no \
	&& make -j4
